﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using SGRapidForm.Common;
using SGRapidForm.Permission.Entity;

namespace SGRapidForm.Permission.Service.Interface
{
    [ServiceContract(Namespace = "http://www.solutiongear.net/SGRapidForm/")]
    public interface IHelpCategoryService
    {
        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool HelpCategory_Add(HelpCategory helpcategory);
        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        HelpCategory HelpCategory_GetByKeyid(string keyid);
        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool HelpCategory_Update(HelpCategory helpcategory);
        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        List<HelpCategory> HelpCategory_GetAll();
        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool HelpCategory_Delete(string keyid);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        List<HelpCategory> HelpCategory_GetByParentKeyid(string parentkeyid);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        List<HelpCategory> HelpCategory_GetCategoryAll();
    }
}
